<template>
  <div id="app">
    <!-- <img src="./assets/logo.png"> -->
    <router-view/>
  </div>
</template>

<script>
setFontSize()
window.onresize = function () {
  setFontSize()
};
function setFontSize () {
  var html = document.getElementsByTagName("html")[0]; //获取html元素
  var w = document.documentElement.clientWidth || document.body.clientWidth; //屏幕宽度（兼容处理）
  var nub = (JSON.parse(localStorage.getItem("fontSizeData")) == null ? 100 : JSON.parse(localStorage.getItem("fontSizeData")).fontSizeNub)
  html.style.fontSize = (w * nub) / 370 + "px"; //370为设计稿宽度
}
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center;
  color: #2c3e50; */
}
</style>
